//
//  KABExhDetDesTCell.m
//  kabu
//
//  Created by XiangDongMBP on 2017/3/8.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABExhDetDesTCell.h"
#import "KABModel.h"
#import "NSString+XDNSDate.h"
#import "NSDate+XDTimerFormatter.h"

@implementation KABExhDetDesTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configViewWithExhListItem:(KABExhListItem *)item {
    self.addressLabel.text = [NSString stringWithFormat:@"%@%@%@%@", item.province, item.city, item.district, item.address];
    NSString *startTime = [[item.start_time xd_yyyyMMddHHmmssStrToDate] xd_yyyy_MM_ddHHmm];
    NSString *endTime = [[item.end_time xd_yyyyMMddHHmmssStrToDate] xd_yyyy_MM_ddHHmm];
    self.timeLabel.text = [NSString stringWithFormat:@"%@ - %@", startTime, endTime];
    self.placeLabel.text = item.address;
    self.priceLabel.text = item.priceTypeDesStr;
    self.remarkLabel.text = item.note;
}

@end
